class CommonModel {
  final String? icon;
  final String? title;
  final String? url;
  final String? statusBarColor;
  final bool? hideAppBar;

  CommonModel(
      {this.icon,
        this.title,
        this.url,
        this.statusBarColor,
        this.hideAppBar
      });

  //命名工厂构造函数 要有返回值
  //键值对的方式
  factory CommonModel.fromJson(Map<String, dynamic> json){
    return CommonModel(
        //从map里获取的对应值
        icon: json['icon'],
        title: json['title'],
        url: json['url'],
        statusBarColor: json['statusBarColor'],
        hideAppBar: json['hideAppBar']
    );
  }
}